<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 500px;
            height: 2000px;
            background-color: rgb(123,45,213);
            background-image: url(../../img/JK.png);
            background-repeat: no-repeat;
            /*
            滚动:scroll
            固定:fixe   相对于浏览器窗口固定，跟盒子没有关系
            */
            background-attachment: scroll;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>